import 'package:alice/pages/main_page.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '爱丽斯',
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF81C784)),
        navigationRailTheme: const NavigationRailThemeData(
          backgroundColor: Color(0xFF252626),
          labelType: NavigationRailLabelType.none,
          indicatorColor: Colors.transparent,
          indicatorShape: CircleBorder(),
          selectedIconTheme: IconThemeData(
            color: Colors.white,
            fill: 0,
          ),
          unselectedIconTheme: IconThemeData(
            color: Colors.white,
          ),
        ),
        bottomSheetTheme: const BottomSheetThemeData(
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.only(topLeft: Radius.circular(8), topRight: Radius.circular(8)),
          ),
        ),
        appBarTheme: const AppBarTheme(
          centerTitle: true,
          titleTextStyle: TextStyle(
            color: Color(0xFF222222),
            fontWeight: FontWeight.bold,
            fontSize: 16,
          ),
        ),
        dividerTheme: const DividerThemeData(
          color: Color(0xFFEEEEEE),
        ),
        dialogTheme: DialogTheme(
          shape: ContinuousRectangleBorder(borderRadius: BorderRadius.circular(10)),
          backgroundColor: Colors.white,
          surfaceTintColor: Colors.white,
        ),
        inputDecorationTheme: InputDecorationTheme(
          labelStyle: TextStyle(fontSize: 14),
          hintStyle: TextStyle(fontSize: 12),
          errorStyle: TextStyle(fontSize: 12),
          floatingLabelStyle: TextStyle(fontSize: 11),
        ),
      ),
      home: const MainPage(),
    );
  }
}
